package com.wenwu.dao;

import com.wenwu.common.bean.RelicsPreserve;
import com.wenwu.common.bean.RelicsProtectArea;
import com.wenwu.common.bean.RelicsProtectAreaExample;
import com.wenwu.common.exception.RelicsException;
import com.wenwu.common.page.PaginationVO;

import java.sql.SQLException;
import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface RelicsProtectAreaMapper {
    int countByExample(RelicsProtectAreaExample example);

    int deleteByExample(RelicsProtectAreaExample example);

    int deleteByPrimaryKey(Integer protectId);

    int insert(RelicsProtectArea record);

    int insertSelective(RelicsProtectArea record);

    List<RelicsProtectArea> selectByExample(RelicsProtectAreaExample example);

    RelicsProtectArea selectByPrimaryKey(Integer protectId);

    int updateByExampleSelective(@Param("record") RelicsProtectArea record, @Param("example") RelicsProtectAreaExample example);

    int updateByExample(@Param("record") RelicsProtectArea record, @Param("example") RelicsProtectAreaExample example);

    int updateByPrimaryKeySelective(RelicsProtectArea record);

    int updateByPrimaryKey(RelicsProtectArea record);
    
    
    
    //后加的方法
    int selectTotalRecord(@Param("relicsProtectArea") RelicsProtectArea relicsProtectArea)
			throws RelicsException;

	List<RelicsPreserve> selectList(
			@Param("relicsProtectArea") RelicsProtectArea relicsProtectArea,
			@Param("pageVo") PaginationVO pageVo) throws RelicsException;

	int deleteByKey(List<?> list) throws SQLException;

	RelicsProtectArea selectRelicsProtectAreaByBasicId(
			@Param("basicId") Integer basicId) throws SQLException;
	
}